package com.neouton.crm.generalPayRequest.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.crm.entity.SysUserEntity;
import com.neouton.crm.generalPayRequest.entity.GeneralPayRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GeneralPayRequestMapper {

    IPage<GeneralPayRequest> queryGeneralPayRequestList(@Param("page") IPage page, @Param("entity") GeneralPayRequest generalPayRequest, @Param("userList")List<SysUserEntity> userList);

    void saveGeneralPayRequest(@Param("vo")GeneralPayRequest entity);

    List<GeneralPayRequest> queryGeneralPayRequestMoney(@Param("vo") GeneralPayRequest generalPayRequest);

    GeneralPayRequest queryGeneralPayRequestByID(Integer payRequestId);

    void backUpGeneralPayRequest(@Param("payRequestId")Integer payRequestId,  @Param("backUserId")Integer userId);

    void updateGeneralPayRequestById(@Param("vo")GeneralPayRequest entity);

    GeneralPayRequest queryGeneralPayRequestHistory(Integer approvalId);



    List<GeneralPayRequest> queryPaymentRequestListInfo(@Param("entity")GeneralPayRequest entity, @Param("userList")List<SysUserEntity> userList);

    Boolean deletePayedRequestById(Integer payRequestId);

    void updatePrIsNotById(@Param("payRequestId") Integer payRequestId, @Param("prIsNot")String s);
}
